package com.example.girl.http;


import com.example.girl.bean.BBB;
import com.example.girl.bean.Fankui;
import com.example.girl.bean.Fk_list;
import com.example.girl.bean.Login;
import com.example.girl.model.GirlResult;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import rx.Observable;

/**
 * @author Jenly <a href="mailto:jenly1314@gmail.com">Jenly</a>
 * @since 2016/10/11
 */
public interface APIService {


    /**
     * @param type
     * @param
     * @param page
     * @return
     */
    @FormUrlEncoded
    @POST("Flower/query_photo")
    Observable<GirlResult> getGirs(@Field("type") String type, @Field("rows") int rows, @Field("page") int page);


    @FormUrlEncoded
    @POST("Client/applogin")
    Observable<Login> applogin(@Field("user_account") String user_account, @Field("user_password") String user_password);

    @FormUrlEncoded
    @POST("feedback/feedback_add")
    Observable<Fankui> feedback_add(@Field("feedback_name") String feedback_name, @Field("feedback_content") String feedback_content);

    @GET("feedback/Queryfeedback")
    Observable<Fk_list> Queryfeedback( );

    @FormUrlEncoded
    @POST("Client/quanxian")
    Observable<BBB> quanxian(@Field("user_account") String user_account);

    @FormUrlEncoded
    @POST("Client/register")
    Observable<Return> register(@Field("user_account") String user_account,
                                @Field("user_password") String user_password,
                                @Field("UserNm") String UserNm,
                                @Field("EnglishNm") String EnglishNm,
                                @Field("Gender") String Gender,
                                @Field("Age") String Age,

                                @Field("Occupation") String Occupation,
                                @Field("ProID") String ProID,
                                @Field("FactoryAddr") String FactoryAddr,
                                @Field("Postcode") String Postcode,


                                @Field("Telephone") String Telephone,
                                @Field("Email") String Email,
                                @Field("Note") String Note
    );
}




